<template>
    <div class=''>
        <div class="title">
            <img style="height: 30px; width: 30px; margin-left: 10px;" src="@/assets/addApp/qqSync.png">
            <span style="padding-left: 10px;">QQ同步助手</span>
        </div>
        <el-card>
            <div class="sync_content">
                <el-table  :data="qqSyncList" border style="width: 100%;">
                    <el-table-column prop="lastdate" label="时间">
                    </el-table-column>
                    <el-table-column prop="path" label="路径">
                    </el-table-column>
                    <el-table-column prop="sha1" label="sha1值">
                    </el-table-column>
                </el-table>
            </div>
        </el-card>
    </div>
</template>

<script>
import { getQQSyncApi } from '@/api/addApp/qqSync_api.js'
export default {
    data() {
        return {
            qqSyncList: [],
            limit: 30,
            offset: 1,
        };
    },
    props: ['sendData'],
    components: {

    },
    created() {
        this.getQQSync()
    },
    mounted() {
    },
    methods: {
        // getQQSync() {
        //     let obj = {
        //         // proof_num: this.sendData.proof_num
        //         proof_num: this.sendData.proof_num,
        //         offset: this.offset,
        //         limit: this.limit
        //     }
        //     getQQSyncApi(obj).then(res => {
        //         this.qqSyncList = res.data
        //     })
        // },
        async getQQSync() {
            let obj = {
                // proof_num: this.sendData.proof_num
                proof_num: this.sendData.proof_num,
                offset: this.offset,
                limit: this.limit
            }
            try {
                let qqSyncData = await getQQSyncApi(obj)
                this.qqSyncList = qqSyncData.data
                console.log()
            } catch (error) {
                console.error(error)
            }
        }
    },
};
</script>
<style lang='scss' scoped>
.title {
    height: 50px;
    background-color: #2b2f3a;
    margin-bottom: 10px;
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
}
.sync_content{
        height: 787px;
        overflow-y: auto;
        padding-bottom: 100px;
}
@media screen and (min-width: 2360px) {
    .sync_content{
        height: 744px;
    }
}
@media screen and (min-width: 2561px) {
    .sync_content{
        height: 610px;
    }
}
</style>